package com.qky.controller.regionController;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.qky.dao.regionDao.RegionDao;
import com.qky.service.regionService.RegionService;

@Controller
@RequestMapping("/region")
public class regionController<E> {
	@Resource
	RegionService regionService;
	
	@RequestMapping(value="/getRegionList",method=RequestMethod.POST)
	public ModelMap getRegionListPost(String regionId,ModelMap map) {
		System.out.println("进入了");
		List list=regionService.getRegionListByParent(regionId);
		System.out.println(list);
		map.put("regionList",list);
		return map;
	}
}
